package com.dmx.cep.entity;

import java.util.Date;

/**
 * TMiniblogUserSns entity. @author MyEclipse Persistence Tools
 */

public class UserSns implements java.io.Serializable {

	// Fields

	/**
	 * @author alex.lu
	 */
	private static final long serialVersionUID = -6734770720304204288L;
	private Long id;
	private String uid;
	private String familyId;
	private Integer snsSite;
	private String snsDesc;
	private String blogId;
	private String nickname;
	private String account;
	private String passwd;
	private String oauthToken;
	private String oauthTokenSecret;
	private String profileImageUrl;
	private String profileImage;
	private Date createdDate;
	private Date editDate;

	// Constructors

	/** default constructor */
	public UserSns() {
	}



	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUid() {
		return this.uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getFamilyId() {
		return this.familyId;
	}

	public void setFamilyId(String familyId) {
		this.familyId = familyId;
	}

	public Integer getSnsSite() {
		return this.snsSite;
	}

	public void setSnsSite(Integer snsSite) {
		this.snsSite = snsSite;
	}

	public String getSnsDesc() {
		return this.snsDesc;
	}

	public void setSnsDesc(String snsDesc) {
		this.snsDesc = snsDesc;
	}

	public String getBlogId() {
		return this.blogId;
	}

	public void setBlogId(String blogId) {
		this.blogId = blogId;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPasswd() {
		return this.passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getOauthToken() {
		return this.oauthToken;
	}

	public void setOauthToken(String oauthToken) {
		this.oauthToken = oauthToken;
	}

	public String getOauthTokenSecret() {
		return this.oauthTokenSecret;
	}

	public void setOauthTokenSecret(String oauthTokenSecret) {
		this.oauthTokenSecret = oauthTokenSecret;
	}

	public String getProfileImageUrl() {
		return this.profileImageUrl;
	}

	public void setProfileImageUrl(String profileImageUrl) {
		this.profileImageUrl = profileImageUrl;
	}

	public String getProfileImage() {
		return this.profileImage;
	}

	public void setProfileImage(String profileImage) {
		this.profileImage = profileImage;
	}



	public Date getCreatedDate() {
		return createdDate;
	}



	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}



	public Date getEditDate() {
		return editDate;
	}


	public void setEditDate(Date editDate) {
		this.editDate = editDate;
	}



	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((account == null) ? 0 : account.hashCode());
		result = prime * result + ((blogId == null) ? 0 : blogId.hashCode());
		result = prime * result + ((createdDate == null) ? 0 : ((Long)createdDate.getTime()).hashCode());
		result = prime * result + ((editDate == null) ? 0 : ((Long)editDate.getTime()).hashCode());
		result = prime * result + ((familyId == null) ? 0 : familyId.hashCode());
		result = prime * result + ((nickname == null) ? 0 : nickname.hashCode());
		result = prime * result + ((oauthToken == null) ? 0 : oauthToken.hashCode());
		result = prime * result + ((oauthTokenSecret == null) ? 0 : oauthTokenSecret.hashCode());
		result = prime * result + ((passwd == null) ? 0 : passwd.hashCode());
		result = prime * result + ((profileImage == null) ? 0 : profileImage.hashCode());
		result = prime * result + ((profileImageUrl == null) ? 0 : profileImageUrl.hashCode());
		result = prime * result + ((snsDesc == null) ? 0 : snsDesc.hashCode());
		result = prime * result + ((snsSite == null) ? 0 : snsSite.hashCode());
		result = prime * result + ((uid == null) ? 0 : uid.hashCode());
		return result;
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserSns other = (UserSns) obj;
		if (account == null) {
			if (other.account != null)
				return false;
		} else if (!account.equals(other.account))
			return false;
		if (blogId == null) {
			if (other.blogId != null)
				return false;
		} else if (!blogId.equals(other.blogId))
			return false;
		if (createdDate == null) {
			if (other.createdDate != null)
				return false;
		} else if (createdDate.getTime()!=other.createdDate.getTime())
			return false;
		if (editDate == null) {
			if (other.editDate != null)
				return false;
		} else if (editDate.getTime()!=other.editDate.getTime())
			return false;
		if (familyId == null) {
			if (other.familyId != null)
				return false;
		} else if (!familyId.equals(other.familyId))
			return false;
		if (nickname == null) {
			if (other.nickname != null)
				return false;
		} else if (!nickname.equals(other.nickname))
			return false;
		if (oauthToken == null) {
			if (other.oauthToken != null)
				return false;
		} else if (!oauthToken.equals(other.oauthToken))
			return false;
		if (oauthTokenSecret == null) {
			if (other.oauthTokenSecret != null)
				return false;
		} else if (!oauthTokenSecret.equals(other.oauthTokenSecret))
			return false;
		if (passwd == null) {
			if (other.passwd != null)
				return false;
		} else if (!passwd.equals(other.passwd))
			return false;
		if (profileImage == null) {
			if (other.profileImage != null)
				return false;
		} else if (!profileImage.equals(other.profileImage))
			return false;
		if (profileImageUrl == null) {
			if (other.profileImageUrl != null)
				return false;
		} else if (!profileImageUrl.equals(other.profileImageUrl))
			return false;
		if (snsDesc == null) {
			if (other.snsDesc != null)
				return false;
		} else if (!snsDesc.equals(other.snsDesc))
			return false;
		if (snsSite == null) {
			if (other.snsSite != null)
				return false;
		} else if (!snsSite.equals(other.snsSite))
			return false;
		if (uid == null) {
			if (other.uid != null)
				return false;
		} else if (!uid.equals(other.uid))
			return false;
		return true;
	}



}